<?php

/**
 * ViewVerifierEcartTroisComptage filter form base class.
 *
 * @package    SdCommerce
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormFilterGeneratedTemplate.php 29570 2010-05-21 14:49:47Z Kris.Wallsmith $
 */
abstract class BaseViewVerifierEcartTroisComptageFormFilter extends BaseFormFilterDoctrine
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'               => new sfWidgetFormFilterInput(),
      'id_comptage'      => new sfWidgetFormFilterInput(),
      'id_stockarticle'  => new sfWidgetFormFilterInput(),
      'qte_disponible'   => new sfWidgetFormFilterInput(),
      'qte_relle1'       => new sfWidgetFormFilterInput(),
      'id1'              => new sfWidgetFormFilterInput(),
      'id_comptage1'     => new sfWidgetFormFilterInput(),
      'id_stockarticle1' => new sfWidgetFormFilterInput(),
      'qte_relle2'       => new sfWidgetFormFilterInput(),
      'id2'              => new sfWidgetFormFilterInput(),
      'id_comptage2'     => new sfWidgetFormFilterInput(),
      'id_stockarticle2' => new sfWidgetFormFilterInput(),
      'qte_relle3'       => new sfWidgetFormFilterInput(),
      'reference'        => new sfWidgetFormFilterInput(array('with_empty' => false)),
      'designation'      => new sfWidgetFormFilterInput(array('with_empty' => false)),
    ));

    $this->setValidators(array(
      'id'               => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'id_comptage'      => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'id_stockarticle'  => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'qte_disponible'   => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'qte_relle1'       => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'id1'              => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'id_comptage1'     => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'id_stockarticle1' => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'qte_relle2'       => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'id2'              => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'id_comptage2'     => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'id_stockarticle2' => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'qte_relle3'       => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'reference'        => new sfValidatorPass(array('required' => false)),
      'designation'      => new sfValidatorPass(array('required' => false)),
    ));

    $this->widgetSchema->setNameFormat('view_verifier_ecart_trois_comptage_filters[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    $this->setupInheritance();

    parent::setup();
  }

  public function getModelName()
  {
    return 'ViewVerifierEcartTroisComptage';
  }

  public function getFields()
  {
    return array(
      'id'               => 'Number',
      'id_comptage'      => 'Number',
      'id_stockarticle'  => 'Number',
      'qte_disponible'   => 'Number',
      'qte_relle1'       => 'Number',
      'id1'              => 'Number',
      'id_comptage1'     => 'Number',
      'id_stockarticle1' => 'Number',
      'qte_relle2'       => 'Number',
      'id2'              => 'Number',
      'id_comptage2'     => 'Number',
      'id_stockarticle2' => 'Number',
      'qte_relle3'       => 'Number',
      'reference'        => 'Text',
      'designation'      => 'Text',
    );
  }
}
